package com.youkeyi.ddy.cloud.common.api.basic.pub.todo;

import com.youkeyi.ddy.cloud.common.api.basic.pub.todo.dto.PublicTodoListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.todo.param.PublicTodoCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.todo.param.PublicTodoDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.todo.param.PublicTodoQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.todo.param.PublicTodoUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * PublicTodoCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/20 4:28 PM
 * @Location shenzhen.china
 */
@Slf4j
@Component
@RequestMapping("/public/todo/fallback")
public class PublicTodoCloudServiceFallback implements PublicTodoCloudService {

    @Override
    public PublicTodoListCloudDto query(PublicTodoQueryCloudParam param) {
        return new PublicTodoListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(PublicTodoCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(PublicTodoUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(PublicTodoDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
